var slideToggle = function () {

    var handleSlideToggle = function() {
		//slideToggle
		$("#filter-btn").click(function(event){
			event.stopPropagation();
			 $("#panel").slideToggle("fast");
		});
		$("#panel").on("click", function (event) {
			event.stopPropagation();
		});
		$(document).on("click", function () {
			$("#panel").slideUp("fast");
		});
		$(".btnSubmitAdvanceSearch").on("click", function () {
		    $("#panel").slideUp("fast");
		});
    }

    return {
        //main function to initiate the module
        init: function () {
            handleSlideToggle();
        }
    };

}();